package com.zsd.android.opengldemo.appearance;

public class Facade {

    private String url;
    private MemoryCache memoryCache;
    private DiskCache diskCache;
    private NetworkLoader networkLoader;

    public Facade(String url) {
        this.url = url;
        memoryCache = new MemoryCacheImpl();
        diskCache = new DiskCacheImpl();
        networkLoader = new NetworkLoaderImpl();
    }

    public void loader() {
        memoryCache.findByMemory(url);
        diskCache.findByDisk(url);
        networkLoader.loaderImageFromNet(url);
    }
}
